package com.doge.calcalbum.core

import com.doge.calcalbum.utils.log

object AppLifecycle {
    private enum class State {
        START, STOP,
    }

    private var state: State = State.STOP

    fun isForeground(): Boolean {
        return state == State.START
    }

    fun onStart() {
        log("AppLifecycle started")
        state = State.START
    }

    fun onStop() {
        log("AppLifecycle stopped")
        state = State.STOP
    }
}